package org.igeek.config.InstantiationAwareBeanPostProcessor;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @package org.igeek.config.InstantiationAwareBeanPostProcessor
 * @Description 测试类
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/11/14 20:23
 */
public class MainTest {
    public static void main(String[] args) {
        //1.测试@MyValue
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(MyConfig.class);
        User user = ac.getBean("user", User.class);
        System.out.println("user = " + user);
        user.eat(1,3);

    }
}
